package org.mcflier.appuntamento.main;

public class Appuntamento {

	public static void main(String[] args) {
		String field = "";
		
		if(field.endsWith("'")) field+=" ";
		
		String[] parts = field.split("'");
		String newField="";
		for (int i = 0; i < parts.length-1; i++) {
			newField+=(parts[i]+"''");
		}

		newField+=parts[parts.length-1];

		System.out.println(newField.trim());
	}
}